package com.open.shitou.bean;

import java.util.List;

import cn.bmob.v3.BmobObject;
import cn.bmob.v3.datatype.BmobGeoPoint;

/**
 * 石头商品
 */
public class Goods extends BmobObject {

    private static final long serialVersionUID = 1L;

    private MyUser author;

    private String province; // 海南省
    private String city; // 乐东
    private String district; // 抱由镇

    private double length; // 长度(厘米)
    private double width; // 宽度(厘米)
    private double height; // 高度(厘米)

    private float weight; // 重量(斤)

    private BmobGeoPoint location; // 定位信息

    private int type; // 类型(0 玉石，1 奇石，2 景观石，3 玉石成品)

    private String title; // 标题
    private String detail; // 描述
    private List<String> img_list; // 图片列表，石头的照片

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public double getLength() {
        return length;
    }

    public void setLength(float length) {
        this.length = length;
    }

    public double getWidth() {
        return width;
    }

    public void setWidth(float width) {
        this.width = width;
    }

    public double getHeight() {
        return height;
    }

    public void setHeight(float height) {
        this.height = height;
    }

    public float getWeight() {
        return weight;
    }

    public void setWeight(float weight) {
        this.weight = weight;
    }

    public BmobGeoPoint getLocation() {
        return location;
    }

    public void setLocation(BmobGeoPoint location) {
        this.location = location;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getDetail() {
        return detail;
    }

    public void setDetail(String detail) {
        this.detail = detail;
    }

    public List<String> getImg_list() {
        return img_list;
    }

    public void setImg_list(List<String> img_list) {
        this.img_list = img_list;
    }

    public MyUser getAuthor() {
        return author;
    }

    public void setAuthor(MyUser author) {
        this.author = author;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "author=" + author +
                ", province='" + province + '\'' +
                ", city='" + city + '\'' +
                ", district='" + district + '\'' +
                ", length=" + length +
                ", width=" + width +
                ", height=" + height +
                ", weight=" + weight +
                ", location=" + location +
                ", type=" + type +
                ", title='" + title + '\'' +
                ", detail='" + detail + '\'' +
                ", img_list=" + img_list +
                '}';
    }

}
